﻿<?xml version="1.0" encoding="utf-8"?>                                         
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 
<xsl:decimal-format name='H' grouping-separator='-' />
<xsl:decimal-format name='S' grouping-separator='/' />
<xsl:decimal-format name='C' grouping-separator=',' />
<xsl:template match="/">                                       
<html version="Version 1.0.0.1 ( build : 800902_001 )">
<HEAD>

<META content="text/html; charset=utf-8" http-equiv="Content-Type"></META><LINK rel="stylesheet" type="text/css" href="/resource/css/style.css"></LINK></HEAD>    
<BODY leftmargin='10' >
    <xsl:apply-templates/>                                       
    </BODY>
  </html>                                                        
</xsl:template>                                                  
                                                                 
<xsl:template match="MXMESSAGE">                               
    <xsl:apply-templates select="loanex"/>          
</xsl:template>                                                  
<xsl:template match="loanex">                       



<P><STRONG>대출실행<script language="javascript"><xsl:text disable-output-escaping="yes"><![CDATA[document.write('<br/>');]]></xsl:text></script><script language="javascript"><xsl:text disable-output-escaping="yes"><![CDATA[document.write('<br/>');]]></xsl:text></script></STRONG>

</P>

<P><script name="wscript0" tn="634346995668099214" mxtype="wscript" capy="18" capx="9">
<xsl:text disable-output-escaping="yes">
<![CDATA[
function SelectAll()
{
	var chkValue = document.begin_form1.chkListAll.checked;
	
	if ( document.begin_form1.IDList == null ) {
		alert("document.begin_form1.IDList 개체가 없습니다.");
	} else {
		if(document.begin_form1.IDList.lengTD != null) {
		  /* --- IDList가 1개일경우 chkSelectAll.lengTD값은 null이다 --- */
		  /* --- IDList가 1인경우와 2 이상인 경우의 로직을 작성한다. --- */
			for ( var i = 0; i < document.begin_form1.IDList.lengTD; i++ ) {
				document.begin_form1.IDList[i].checked = chkValue;			
			}
		} else {
	    	document.begin_form1.IDList.checked = chkValue;			
		}
	}
		
	return false;
}
function buttonClick()
{
	var checkedItem = "";
	if ( document.begin_form1.IDList != null ) { 
		var element = document.getElementById("fix");
		if(document.begin_form1.IDList.length != null) {
    /* --- IDList가 1개일경우 chkSelectAll.length값은 null이다 --- */
    /* --- IDList가 1인경우와 2 이상인 경우의 로직을 작성한다. --- */
			for ( var i = 0; i < document.begin_form1.IDList.length; i++ ) {
				if (document.begin_form1.IDList[i].checked) {
					var str = element.rows[i + 1].cells[1].innerText;
					checkedItem += "&OFFR_SEQ=" + str ;
				}
			}
		}  else {
			alert("2-2번if");
			checkedItem += "&OFFR_SEQ=" + element.rows[1].cells[1].innerText;
			document.begin_form1.IDList.checked = checkedItem;   
		}
	}
 
	if (checkedItem.length > 0) {
		document.begin_form1.action = "/loanExec.do?opcode=I06" + checkedItem;
		document.begin_form1.submit();
	} else {
		alert("대출 실행할 목록이 없습니다");
	}
}

function check()
{
	if(document.begin_form1.check1.checked == true) {
		for ( var i = 0; i < document.begin_form1.IDList.length; i++ ) {
			document.begin_form1.IDList[i].checked = true;
		}
	} else {
		for ( var i = 0; i < document.begin_form1.IDList.length; i++ ) {
			document.begin_form1.IDList[i].checked = false;
		} 
	}
}
]]>
</xsl:text>
</script><!-->mxtype@wscript<--><form name="begin_form1" mxtype="begin_form" method="post" metdod="post">

<TABLE id="fix" border="1" cellspacing="1" cellpadding="1" width="100%" height="79" name="Table" widtd="80%" xml="true" xmllink="대출실행목록" beginfor="2" endfor="2">

<TBODY>

<TR class="First">

<TD height="26" width="71" widtd="46">

<P align="center">&#xa0;<INPUT onclick="check()" value="ON" type="checkbox" name="check1">
</INPUT></P></TD>

<TD bgcolor="#e0e0e0" height="26" width="121">

<P align="center">대출신청번호</P></TD>

<TD bgcolor="#e0e0e0" height="26" width="102" widtd="97">

<P align="center">고객번호</P></TD>

<TD bgcolor="#e0e0e0" height="26" width="102" widtd="90">

<P align="center">이&#xa0; 름</P></TD>

<TD bgcolor="#e0e0e0" height="26" width="115" widtd="97">

<P align="center">상품명</P></TD>

<TD bgcolor="#e0e0e0" height="26" width="103" widtd="95">

<P align="center">대출요청액</P></TD>

<TD bgcolor="#e0e0e0" height="26" width="102" widtd="66">

<P align="center">대출기간</P></TD>

<TD bgcolor="#e0e0e0" height="26" width="103" widtd="66">

<P align="center">대출금리</P></TD>

<TD bgcolor="#e0e0e0" height="26" width="108" widtd="66">

<P align="center">신청년월일</P></TD>

<TD bgcolor="#e0e0e0" height="26" width="95" widtd="66">

<P align="center">상환방법</P></TD>

<TD bgcolor="#e0e0e0" height="26" width="108" widtd="68">

<P align="center">이자수납일</P></TD></TR>
<xsl:for-each select="대출실행목록"><!-->mxtype@beginfor@name@@ibkuniqueid@ms__id100@xmllink@대출실행목록@nonobject@true<-->

<TR id="row" forbegin="true" forbeginxml="대출실행목록" forend="true" forendxml="대출실행목록">

<TD height="26" width="71" widtd="46">

<P align="center"><INPUT type="checkbox" name="IDList" xml="true" xmlvalue="checkBox" xmlcheck="IDList">
<xsl:attribute name="value"><xsl:value-of select="checkBox"/></xsl:attribute><xsl:if test="IDList=checkBox">
<xsl:attribute name="checked">true</xsl:attribute></xsl:if></INPUT></P></TD>

<TD height="26" width="121">

<P align="center"><xsl:value-of select="OFFR_SEQ"><!-->xml@true@xmlesc@false@textfmt@@name@offr_seq@xmllink@OFFR_SEQ@numberfmt@@mxtype@label@source@@size@6@labeltype@<--></xsl:value-of></P></TD>

<TD height="26" width="102" widtd="97">

<P align="center"><xsl:value-of select="CS_NO"><!-->xml@true@xmlesc@false@textfmt@@name@cs_no@xmllink@CS_NO@numberfmt@@mxtype@label@source@@size@4@labeltype@<--></xsl:value-of>&#xa0;</P></TD>

<TD height="26" width="102" widtd="90">

<P align="center"><xsl:value-of select="CS_NM"><!-->xml@true@xmlesc@false@textfmt@@name@cs_nm@xmllink@CS_NM@numberfmt@@mxtype@label@source@@size@4@labeltype@<--></xsl:value-of>&#xa0;</P></TD>

<TD height="26" width="115" widtd="97">

<P align="center"><xsl:value-of select="GD_NM"><!-->xml@true@xmlesc@false@textfmt@@name@gd_nm@xmllink@GD_NM@numberfmt@@mxtype@label@source@@size@4@labeltype@<--></xsl:value-of>&#xa0;</P></TD>

<TD height="26" width="103" widtd="95">

<P align="center"><xsl:value-of select="LOAN_ASK_AMT"><!-->xml@true@xmlesc@false@textfmt@@name@loan_ask_amt@xmllink@LOAN_ASK_AMT@numberfmt@@mxtype@label@source@@size@4@labeltype@<--></xsl:value-of>&#xa0;</P></TD>

<TD height="26" width="102" widtd="66" xmlesc="false" value="DEFAULT">

<P align="center"><xsl:value-of select="LOAN_TRM_DIV_CD"><!-->xml@true@xmlesc@false@textfmt@@name@loan_trm_div_cd@xmllink@LOAN_TRM_DIV_CD@numberfmt@@mxtype@label@source@@size@3@labeltype@<--></xsl:value-of>년</P></TD>

<TD height="26" width="103" widtd="66">

<P align="center"><xsl:value-of select="LOAN_MNRT"><!-->xml@true@xmlesc@false@textfmt@@name@loan_mnrt@xmllink@LOAN_MNRT@numberfmt@@mxtype@label@source@@size@4@labeltype@<--></xsl:value-of>&#xa0;</P></TD>

<TD height="26" width="108" widtd="66">

<P align="center"><xsl:value-of select="OFFR_DATE"><!-->xml@true@xmlesc@false@textfmt@@name@offr_date@xmllink@OFFR_DATE@numberfmt@@mxtype@label@source@@size@5@labeltype@<--></xsl:value-of>&#xa0;</P></TD>

<TD height="26" width="95" widtd="66">

<P align="center"><xsl:value-of select="RMBR_METH_DIV_CD"><!-->xml@true@xmlesc@false@textfmt@@name@rmbr_meth_div_cd@xmllink@RMBR_METH_DIV_CD@numberfmt@@mxtype@label@source@@size@3@labeltype@<--></xsl:value-of></P></TD>

<TD height="26" width="108" widtd="68">

<P align="center">&#xa0;<xsl:value-of select="INT_RECP_DD"><!-->xml@true@xmlesc@false@textfmt@@name@int_recp_dd@xmllink@INT_RECP_DD@numberfmt@@mxtype@label@source@@size@5@labeltype@<--></xsl:value-of></P></TD></TR>
</xsl:for-each><!-->mxtype@endfor@name@@ibkuniqueid@ms__id101@xmllink@@nonobject@true<-->

<TR>
<xsl:if test="count(대출실행목록) = '0'"><!-->mxtype@if@name@@ibkuniqueid@ms__id102@script@count(대출실행목록) = '0'@xmlfdlist@@nonobject@true<-->

<TD height="33" width="1274" colspan="11" widtd="1070" enablecondition="count(대출실행목록) = '0'">

<P align="center">목록이 존재하지 않습니다</P></TD>
</xsl:if><!-->mxtype@endif@name@@ibkuniqueid@ms__id103@mxscript@@nonobject@true<-->

</TR>

</TBODY></TABLE><INPUT onclick="buttonClick()" value="대출 실행" type="button">
</INPUT></form> 

</P>
</xsl:template>										  
</xsl:stylesheet>									  
